//
//  FTImageSrcollView.h
//  Decathlon
//
//  Created on 14-1-19.
//  Copyright (c) 2014年. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol FTImageScrollDelegate;

@interface FTImageScrollView : UIScrollView<UIScrollViewDelegate>
{
    UIImageView  *_imageView;
    UIImageView  *_defaultView;
    UIImageView  *_defaultImageView;
	BOOL          _isFinishLoading;
}

@property(nonatomic,strong) UIImageView *imageView;

@property(nonatomic,assign) id<FTImageScrollDelegate>imgSclDelegate;

- (void)loadImage:(UIImage *)image;
-(void)loadDefaultImage:(BOOL)bFailed;

-(void)setCanScrollEnabled:(BOOL)bEnabled;

@end


@protocol FTImageScrollDelegate <NSObject>
@optional
-(void)singleTap:(FTImageScrollView*)scrollView;

-(void)doubleTap:(FTImageScrollView*)scrollView;

@end

@interface FTChatImageScrollView : FTImageScrollView
{
    UIView      *_progressView;          /*<底部进度条view */
    UIView      *_footView;              /*<底部进度条、label父view */
    UILabel     *_progressLable;
}

- (void)updatePressWithFileSize:(float)fileSize AndFinishedBytes:(float)finishedBytes;
- (void)setHiddenFootView:(BOOL)bHide;
//是否可以双击
- (BOOL)canDoubleTap;
- (void)handleMaxZoomScale:(BOOL)bZoom;

@end

@interface RCSChatImageScrollView : FTImageScrollView

-(void)loadProgressView;

-(void)removeProgressView;

-(void)setProgressPicTransSize:(NSString *)picTransSize andPicTotalSize:(NSString *)picTotalSize;



@end
